package com.zh.system.domain.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.zh.web.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName("sys_msg_from")
@ApiModel("消息接收表")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SysMsgTo extends BaseModel implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty("消息接收主键")
    private Long id;

    @ApiModelProperty("消息主键")
    private Long msgId;

    @ApiModelProperty("消息接收者id")
    private Long toId;
    @ApiModelProperty("1未读0已读")
    private Short confirmed;
    @ApiModelProperty("消息确认时间")
    private LocalDateTime confirmTime;

}